include "common.php"; dbopen(); $uid = $_REQUEST['uid']; if ($uid == '') { $fatal = 1; print "
Sorry, Can not continue... No userid provided.
"; } else { $sql = "select login,name,email,info from user where uid = $uid"; $res = mysql_query($sql); if (!$res) { $fatal = 1; print "
Sorry, internal search error.
"; } if (($fatal == 0) && (mysql_num_rows($res) != 1)) { $fatal = 1; print "
Sorry, no user information found.
"; } } if ($fatal == 0) { ?>
Information about user print mysql_result($res,0,'login') ?>
Name
print mysql_result($res,0,'name') ?>
Email
print mysql_result($res,0,'email') ?>
Comments
print stripslashes(mysql_result($res,0,'info')) ?>
} ?>